const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    
  },
  backto: function (e) {
    wx.navigateBack({})
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options)
    //测试
    // var a = options.openid + ',' + options.wid;
    // app.ihttpGet('https://www.58zltc.com/api.php/Index/heXiaoInfo/scenestr/' + a, res => {
    //   this.setData({
    //     info: res.data
    //   })
    // })

    let that = this;
    let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
    const token = extConfig.appid;
    var scene = decodeURIComponent(options.scene)
    app.ihttpGet('https://www.58zltc.com/api.php/Index/heXiaoInfo/scenestr/' + scene, res => {
      this.setData({
        info: res.data
      })
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },
 
})